package com.myf.features;

import com.myf.authorize.AppUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class BaseController {
    public AppUser getCurrentUser()
    {
       return  (AppUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
